package com.baidu.day03;

import java.io.File;

public class Demo03 {
    public static void main(String[] args) {
        File file = new File("C:\\Users\\DAJU\\Desktop\\新建 文本文档.txt");
        File newFile = new File("C:\\Users\\DAJU\\Desktop\\新建文件夹 (2)\\XXX.txt");
        file.renameTo(newFile);
    }
}
